package bg.ittalents.homework.airport;

import java.util.Comparator;

class JetComp implements Comparator<Jet> {
	// This will sort jets based on left fuel. Plane with less fuel will be
	// priority
	@Override
	public int compare(Jet j1, Jet j2) {
		return (int) (j1.getRemainingFuel() - j2.getRemainingFuel());
	}
}